package com.cyan.tools.handler;

import android.os.Handler;
import android.os.Looper;

/**
 * Created by pc on 2017/1/5.
 */

public class SimpleHandler extends Handler {

    private static Handler sInstance;

    public static Handler getInstance() {
        if (sInstance == null) {
            sInstance = new SimpleHandler(Looper.getMainLooper());
        }
        return sInstance;
    }

    public SimpleHandler(Looper mainLooper) {
        super(mainLooper);
    }
}